package com.cjq.system.service.impl;

import com.cjq.common.domain.SysUser;
import com.cjq.common.result.Result;
import com.cjq.system.mapper.SysUserMapper;
import com.cjq.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public Result<SysUser> findUser(String userName) {
        SysUser sysUser = sysUserMapper.findUser(userName);
        return Result.success(sysUser);
    }
}
